interface shapeCode {
  text: string;
  onClick: any;
  cur: boolean;
}

export default function ShapeCode(props: shapeCode) {
  const { text, cur, onClick } = props;

  return (
    <div
      className={cur ? 'bpmn-tool-bar-shape-code-item border-bottom' : 'bpmn-tool-bar-shape-code-item'}
      onClick={onClick}
    >
      {text}
    </div>
  );
}
